#include<iostream>
using namespace std;
int main() {
	const int N = 101;
	char str[N];

	int len = 0, capital = 0, smallletter = 0, digit = 0, others = 0;
	int i;
	cin.getline(str, N);

	i = 0;

	while (str[i] != '\0') {
		len++;
		if (str[i] <= 'Z' && str[i] >= 'A') {
			capital++;
		} else if (str[i] <= 'z' && str[i] >= 'a') {
			smallletter++;
		} else if (str[i] <= '9' && str[i] >= '0') {
			digit++;
		} else {
			others++;
		}
		i++;
	}

}
